import service from '@/utils/request'

// @Tags Case_struct
// @Summary 创建Case_struct
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Case_struct true "创建Case_struct"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /case_/createCase_struct [post]
export const createCase_struct = (data) => {
  return service({
    url: '/case_/createCase_struct',
    method: 'post',
    data
  })
}

// @Tags Case_struct
// @Summary 删除Case_struct
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Case_struct true "删除Case_struct"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /case_/deleteCase_struct [delete]
export const deleteCase_struct = (data) => {
  return service({
    url: '/case_/deleteCase_struct',
    method: 'delete',
    data
  })
}

// @Tags Case_struct
// @Summary 删除Case_struct
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除Case_struct"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /case_/deleteCase_struct [delete]
export const deleteCase_structByIds = (data) => {
  return service({
    url: '/case_/deleteCase_structByIds',
    method: 'delete',
    data
  })
}

// @Tags Case_struct
// @Summary 更新Case_struct
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Case_struct true "更新Case_struct"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /case_/updateCase_struct [put]
export const updateCase_struct = (data) => {
  return service({
    url: '/case_/updateCase_struct',
    method: 'put',
    data
  })
}

// @Tags Case_struct
// @Summary 用id查询Case_struct
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.Case_struct true "用id查询Case_struct"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /case_/findCase_struct [get]
export const findCase_struct = (params) => {
  return service({
    url: '/case_/findCase_struct',
    method: 'get',
    params
  })
}

// @Tags Case_struct
// @Summary 分页获取Case_struct列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取Case_struct列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /case_/getCase_structList [get]
export const getCase_structList = (params) => {
  return service({
    url: '/case_/getCase_structList',
    method: 'get',
    params
  })
}
